<?php
class Classes extends Zend_Db_Table_Abstract {
	protected $_name = 'classes';
	protected $_dependentTables = array('Characters','ClassesRoles');
	
	public static function getClasses()
	{
		$table = new Classes();    	
    	$select = $table->select();
    	$select->from($table,array('id','name'));    	
    	$rows = $table->fetchAll($select);
    	
    	foreach ($rows as $class){
    		$result[$class->id] = $class->name;
    	}    	
    	
    	return $result;
	}

}
?>